package com.lxl.xm.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lxl.xm.model.entity.Advertiser;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.boot.autoconfigure.data.web.SpringDataWebProperties;
import java.awt.print.Pageable;
import java.util.List;

/**
* @author 86135
* @description 针对表【advertiser(广告商家表)】的数据库操作Service
* @createDate 2024-02-06 15:39:33
*/
public interface AdvertiserService extends IService<Advertiser> {
    //分页查询
    Page<Advertiser> getAdvertiserPage(int current,int size);
    //插入商家
    boolean createAdvertiser(Advertiser advertiser);
    //删除商家
    boolean deleteAdvertiserById(Long id);
    //更新商家
    boolean updateAdvertiser(Advertiser advertiser);
    //根据ID查找商家
    Advertiser getAdvertiserById(Long id);
    //获取待审核商家列表
    List<Advertiser> getPendingAdvertisers();
    //审核商家
    void reviewAdvertiser(Long id,Integer status,String notes);
    //下架商家
    void suspendAdvertiser(Long id);
    //搜索商家
    Page<Advertiser>searchAdvertisers(String keyword, int page, int size);
    /*
    //发送验证码
    boolean sendVerificationCode(String email);
    //邮箱注册
    boolean registerAdvertiser(Advertiser advertiser,String code);
    //邮箱登录
    Advertiser loginAdvertiser(String email,String password);
     */
    Integer getCount();

}
